﻿using Microsoft.Security.Application;
using System.IO;
using System.Web.Util;

namespace ASPItalia.ModelVirtualCasting.Web.Utils.Security
{
	public class MVCHttpEncoder : HttpEncoder
	{
		public MVCHttpEncoder()
		{
		}

		protected override void HtmlEncode(string value, TextWriter output)
		{
			output.Write(AntiXss.HtmlEncode(value));
		}

		protected override void HtmlAttributeEncode(string value, TextWriter output)
		{
			output.Write(AntiXss.HtmlAttributeEncode(value));
		}
	}
}